package com.cy.store.service;

import com.cy.store.entity.User;
import org.springframework.stereotype.Service;


public interface IUserService {

    /*用户注册*/
    void reg(User user);

    /*用户登录*/
    User login(String username, String password);

    /*修改密码*/
    public void changePassword(Integer uid,String username,String oldPassword,String newPassword);

    /*获取当前用户的登录信息*/
    User getByUid(Integer uid);

    /*修改用户资料*/
    void changeInfo(Integer uid,String username,User user);

    /*修改用户头像*/
    void changeAvatar(Integer uid,String username,String avatar);
}
